package com.zjj.rabbitmq.hello;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "zjj")
public class HelloReceiver {

    @RabbitHandler
    public void process(String name) {
        System.out.println("接收者  : " + name);
    }
}
